/*
 * Copyright 2022-2023 the original author(https://github.com/wj596)
 * 
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * </p>
 */
package org.jsets.fastboot.flowable.model.entity;

import java.io.Serializable;
import java.util.Date;

import org.javers.core.metamodel.annotation.Id;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

/**
 * 任务追踪
 *
 * @author wangjie (https://github.com/wj596)
 * @date 2021.05.07 21:49
 */
@Data
@ToString
@TableName("sys_flow_task_trace")
@ApiModel(description = "任务结果")
public class TaskTrace implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "主键")
	private Long id;
	
	private String instanceId; // 流程实例ID
	private String taskId; // 任务ID
	private String taskDefId; // 任务ID
	private String taskName; // 任务ID
	private String businessKey; // 业务主键
	private String businessType;// 业务类型
	private String username; // 办理人
	private String comment; // 办理意见
	private String result; // 办理结果
	private Integer completeType; // 办结类型0:手动  ，1:自动
	private Date completeTime; // 办结时间
}
